<?php
/**
 * TransactionController.php
 *
 * @copyright  2023 beikeshop.com - All Rights Reserved
 * @link       https://beikeshop.com
 * @author     TL <mengwb@guangda.work>
 * @created    2023-05-29 18:57:56
 * @modified   2023-05-29 18:57:56
 */

namespace Plugin\MultiSeller\Http\Controllers\Admin;

use Beike\Admin\Http\Controllers\Controller;
use Beike\Seller\Repositories\SellerTransactionRepo;
use Illuminate\Http\Request;
use Illuminate\View\View;

class TransactionController extends Controller
{
    /**
     * @param Request $request
     * @return View
     */
    public function index(Request $request): View
    {
        $transactions = SellerTransactionRepo::list($request->all());
        $data         = [
            'transactions' => $transactions,
        ];

        return view('MultiSeller::admin.transactions.index', $data);
    }
}
